<template>
  <div class="tem_child">
    <h3>孙组件C</h3>
    <p class="inject_data">{{ provide4 }}</p>
    <p>grandsonC的$attrs: {{ $attrs }}</p>
  </div>
</template>

<script>

export default {
  name: "grandsonC",
  props: {
    coo: String,
    title: String
  },
  inject: ['provide4'],
  created() {
    let res = this.$listeners.parentEvent();
    console.log("grandsonC", res)
  }
}
</script>

<style scoped>
.inject_data {
  color: red;
}
</style>
